<?php
if (!defined('MONK_VERSION')) exit('Access is no allowed.');

define('ARGV_DEFAULT','[^\/]+');
define('ARGV_INT','\d+');
/*
可根据正则表达式对参数进行类型过滤
route:
  '/url/<name>' => 'app/controller/action:name'
example:
  '/city/index' => 'home/city/index',
  '/home/(?<tagname>[^\/]+)'  => 'home/content/index:tagname',
  '/home/index/(?<id>[^\/]+)/(?<foodid>[^\/]+)' => 'home/index/index:id&foodid',
*/

return array(
    '/manager'      => 'admin/index/index',
    '/bankroll'     => 'home/bankroll/list',
    '/bankroll-(?<index>'.ARGV_DEFAULT.')'  => 'home/bankroll/list:index',
    '/project'      => 'home/project/list',
    '/project-(?<index>'.ARGV_DEFAULT.')'   => 'home/project/list:index',
    '/hand'         => 'home/hand/list',
    '/hand-(?<index>'.ARGV_DEFAULT.')'      => 'home/hand/list:index',
    '/organization/'=> 'home/organization/list',
);
